home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / scsiDiskBoot / machStubs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-15  |  1.3 KB  |  50 lines

  1. /* 
  2.  * machCode.c --
  3.  *
  4.  *     C code for the mach module.
  5.  *
  6.  * Copyright 1989 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #include "sprite.h"
  17. /*
  18.  *  Flag used by routines to determine if they are running at
  19.  *  interrupt level.
  20.  */
  21. Boolean mach_AtInterruptLevel;
  22. /*
  23.  *  Count of number of ``calls'' to enable interrupts minus number of calls
  24.  *  to disable interrupts.  Kept on a per-processor basis.
  25.  */
  26. int mach_NumDisableInterrupts[1];
  27. int *mach_NumDisableIntrsPtr = mach_NumDisableInterrupts;
  28. #ifdef notdef
  29. Mach_SetHandler() { }
  30. ReturnStatus
  31. Mach_Probe(size, srcAddress, destAddress)
  32.   int               size;   
  33.   Address     srcAddress;    
  34.   Address     destAddress;    
  35. {
  36.     switch (size) {
  37.     case 1:
  38.     * (char *) destAddress = * ( char *) srcAddress;
  39.     break;
  40.     case 2:
  41.     * (short *) destAddress = * ( short *) srcAddress;
  42.     break;
  43.     case 4:
  44.     * (int *) destAddress = * ( int *) srcAddress;
  45.     break;
  46.     }
  47.     return (SUCCESS);
  48. }
  49. #endif
  50.